<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="kmsinventory_v1.html">KMS Inventory API</a> . <a href="kmsinventory_v1.organizations.html">organizations</a> . <a href="kmsinventory_v1.organizations.protectedResources.html">protectedResources</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#search">search(scope, cryptoKey=None, pageSize=None, pageToken=None, resourceTypes=None, x__xgafv=None)</a></code></p>
<p class="firstline">Returns metadata about the resources protected by the given Cloud KMS CryptoKey in the given Cloud organization.</p>
<p class="toc_element">
  <code><a href="#search_next">search_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="search">search(scope, cryptoKey=None, pageSize=None, pageToken=None, resourceTypes=None, x__xgafv=None)</code>
  <pre>Returns metadata about the resources protected by the given Cloud KMS CryptoKey in the given Cloud organization.

Args:
  scope: string, Required. Resource name of the organization. Example: organizations/123 (required)
  cryptoKey: string, Required. The resource name of the CryptoKey.
  pageSize: integer, The maximum number of resources to return. The service may return fewer than this value. If unspecified, at most 500 resources will be returned. The maximum value is 500; values above 500 will be coerced to 500.
  pageToken: string, A page token, received from a previous KeyTrackingService.SearchProtectedResources call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to KeyTrackingService.SearchProtectedResources must match the call that provided the page token.
  resourceTypes: string, Optional. A list of resource types that this request searches for. If empty, it will search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key-usage#tracked-resource-types). Regular expressions are also supported. For example: * `compute.googleapis.com.*` snapshots resources whose type starts with `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * `.*Image.*` snapshots resources whose type contains `Image`. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned. (repeated)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for KeyTrackingService.SearchProtectedResources.
  &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
  &quot;protectedResources&quot;: [ # Protected resources for this page.
    { # Metadata about a resource protected by a Cloud KMS key.
      &quot;cloudProduct&quot;: &quot;A String&quot;, # The Cloud product that owns the resource. Example: `compute`
      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which this resource was created. The granularity is in seconds. Timestamp.nanos will always be 0.
      &quot;cryptoKeyVersion&quot;: &quot;A String&quot;, # The name of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key version data to Asset Inventory. If there are multiple key versions protecting the resource, then this is same value as the first element of crypto_key_versions.
      &quot;cryptoKeyVersions&quot;: [ # The names of the Cloud KMS [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en) used to protect this resource via CMEK. This field is empty if the Google Cloud product owning the resource does not provide key versions data to Asset Inventory. The first element of this field is stored in crypto_key_version.
        &quot;A String&quot;,
      ],
      &quot;labels&quot;: { # A key-value pair of the resource&#x27;s labels (v1) to their values.
        &quot;a_key&quot;: &quot;A String&quot;,
      },
      &quot;location&quot;: &quot;A String&quot;, # Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
      &quot;name&quot;: &quot;A String&quot;, # The full resource name of the resource. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
      &quot;project&quot;: &quot;A String&quot;, # Format: `projects/{PROJECT_NUMBER}`.
      &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project that owns the resource.
      &quot;resourceType&quot;: &quot;A String&quot;, # Example: `compute.googleapis.com/Disk`
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="search_next">search_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

</body></html>